/* 
 * File:   Xcom.h
 * Author: minaev
 *
 * Created on 11 Октябрь 2013 г., 13:46
 */

#ifndef XCOM_H
#define	XCOM_H

#include <termios.h>

class Xcom {
public:
    Xcom(const char* filetty, speed_t baudrate);
    Xcom(const Xcom& orig);
    virtual ~Xcom();
    void xwrite(const char* sendBuf, int size);
    int xread(char* receiveBuf, int size);
    int availBytes();
private:
    termios comSettings;
    int fileDsc;
};

#endif	/* XCOM_H */

